/*
 * utils.h
 *
 *  Created on: Jul 13, 2012
 *      Author: Yangde
 */

#ifndef _AUI_UTILS_H_
#define _AUI_UTILS_H_

#include "wx/settings.h"
#include "wx/defs.h"
#include "wx/control.h"


class wxAuiUtils{

public:


	void DrawToolBar(wxDC& dc,const wxRect& _rect,int type);

	void DrawMenuText(const wxString &text,
	       wxDC& dc,
	       int x,int y
	       ,int u_index);

	void DrawMenuHighlight(
		       wxDC& dc,
		       wxRect &rect);
	void Draw3DBorder(
		       wxDC& dc,
		       const  wxRect& rect,
		       const wxColour& highlight_color,
		       const wxColour& shadow_color);

	wxColour m_base_colour;
	wxColour m_border_colour;
	wxColour m_menu_popwin_border_colour;

	wxColour m_menu_highlight_border_colour;
	wxColour m_menu_highlight_top_colour;
	wxColour m_menu_highlight_bot_colour;

	wxColour m_highlightColour;
	wxColour m_highlightTextColour;

	wxColour m_bt_highlight_colour;
	wxColour m_bt_shadow_colour;

	static wxAuiUtils * GetInstance()
	{
		if(!__uinstance)
		{
			__uinstance = new wxAuiUtils();
		}
		return __uinstance;
	}

	wxFont menu_font,menu_font_u;
private:
	wxAuiUtils();
	~wxAuiUtils(){

	}

	static wxAuiUtils *__uinstance;

};



#endif /* _AUI_UTILS_H_ */
